package com.xmg.p2p.base.service;

import com.github.pagehelper.PageInfo;
import com.xmg.p2p.base.domain.RealAuth;
import com.xmg.p2p.base.query.PageResult;
import com.xmg.p2p.base.query.RealAuthQueryObject;
import org.springframework.stereotype.Service;

/**
 * @BelongsProject: jinrong-website
 * @BelongsPackage: com.xmg.p2p.base.service
 * @author: Andy
 * @date: 2021.3.22 10:23
 * @Description: 实名认证的业务层
 * @since JDK 1.8
 */
@Service
public interface RealAuthService {
    /**
     * 通过用户ID获取实名认证的信息
     */
    RealAuth get(Long id);

    /**
     * 进行认证提交
     * @param realAuth
     */
    void apply(RealAuth realAuth);

    /**
     * 后台审核实名认证分页
     * @param queryObject   封装条件
     * @return
     */
    PageResult query(RealAuthQueryObject queryObject);

    /**
     * 进行审核
     * @param id    实名认证的ID
     * @param remark    审核的备注
     * @param state     审核的状态
     */
    void audit(Long id, String remark, int state);
}
